package org.lex.ftplist.ui.action;

import java.awt.event.ActionEvent;

import org.lex.ftplist.core.FtpUrl;
import org.lex.ftplist.ui.FtpListProgressFrame;

public class NewFtpListAction extends FLAction {
	public NewFtpListAction() {
		this.setName("New FTP List...");
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		FtpUrl u = getApplication().getOperator().askUserFtpUrl();
		if (null != u) {
			FtpListProgressFrame frame = new FtpListProgressFrame(u);
			getOperator().addInternalFrame(frame);
		}
	}
}
